<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.HashMap" %><%--
  Created by IntelliJ IDEA.
  User: 杨威
  Date: 2021/9/15
  Time: 11:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    int[] arr={1,3,5,7,9};
    request.setAttribute("arr",arr);
    List list=new ArrayList();
    list.add(5);
    list.add(6);
    list.add(7);
    list.add(8);
    pageContext.setAttribute("list",list);
    Map<String,String> map=new HashMap();
    map.put("cn","中国");
    map.put("mk","美国");
    map.put("yg","英国");
    map.put("yg","大海");
    pageContext.setAttribute("map",map,4);
%>
${arr[0]}
${arr[1]}
${arr[2]}
${arr[3]}
<hr/>
${list[0]}
${list[1]}
${list[2]}
${list[3]}
<hr/>
${map["yg"]}
</body>
</html>
